# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Igor Galic <i.galic@gmail.com>

pkgname=audio-convert
pkgver=0.3.1.1
pkgrel=9
pkgdesc="A script with an easy to use interface to convert audio files: wav, mp3, ogg, flac, aac, mpc, ape and wma"
arch=('any')
url="http://freshmeat.net/projects/audio-convert"
license=('GPL')
depends=('bash' 'zenity')
optdepends=('faac: for aac support'
            'faad2: for aac support'
            'flac: for flac support'
            'id3lib: for mp3 support'
            'lame: for mp3 support'
            'mplayer: for wma support'
            'musepack-tools: for mpc support'
            'vorbis-tools: for ogg support')
source=(https://savannah.nongnu.org/download/$pkgname/$pkgname-$pkgver.tar.bz2{,.sig})
sha256sums=('7b37d5fc2a4dd62885910b6424f5ff6870c329ed4f4f51feeeb952152c7d9d2b'
            'SKIP')
validpgpkeys=('1CF3EC073D659B59A5907F731345ECD025721889')

package() {
  install -D -m755 "$srcdir/$pkgname-$pkgver/$pkgname" "$pkgdir/usr/bin/$pkgname"

#FS#29260 fix
  sed -i '46 s/^/#/' "$pkgdir/usr/bin/$pkgname"
}
